package com.goldenKey.user.pojo.query;

import com.goldenKey.common.constant.Constant;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class RegisterQuery {

    @NotEmpty
    @Pattern(regexp = Constant.REGEX_EMAIL)
    private String email;

    @NotEmpty
    private String username;

    @NotEmpty
    @Pattern(regexp = Constant.REGEX_PASSWORD)
    private String password;
    @NotEmpty
    private String confirmPassword;

    // 邮箱验证码
    @NotEmpty
    private String emailCode;


}
